package models.shop.path;

public class ProductFilter {
    public boolean showProduct;

    public ProductFilter(Integer categoryId, Integer pageNumber, Integer brandId, Integer brandPage, Integer productId) {

        this.categoryId = categoryId == null ? 1 : categoryId;
        this.pageNumber = pageNumber == null ? 1 : pageNumber;
        this.brandId = brandId == null ? 0 : brandId;
        this.brandPage = brandPage == null ? 1 : brandPage;
        this.productId = productId == null ? 0 : productId;
    }


    public int categoryId;
    public int brandId = 0;
    public int pageNumber = 1;
    public int productId = 0;
    public int pageSize = 10;
    public int brandPage = 1;

    public ProductFilter() {

    }
}
